升级固件的方法、电子设备和存储介质
Published in 发明专利 Invention patent, 2024
Recommended citation: Dayao Ji. (2024). "Method for upgrading firmware, electronic device and storage medium." China patent. CN117407022A. https://patents.google.com/patent/CN117407022A
升级固件的方法、电子设备和存储介质
摘要:本发明涉及升级固件的方法、电子设备和存储介质。该方法包括根据当前设备中的升级模式固件和升级模式固件的依赖固件列表构建升级暂存镜像,并将其写入设备分区表中的暂存固件分区,在第一升级阶段,根据第一升级指令将当前分区表中的升级模式固件和升级模式固件的依赖固件列表所对应的分区起始地址定位到暂存固件分区中的对应固件,在第二升级阶段,根据第二升级指令基于暂存固件分区对升级模式固件和升级模式固件的依赖固件列表进行升级。根据本发明即便在固件升级的任何时刻出现掉电,重新上电后,总能继续升级,从而实现对升级模式固件和升级模式固件的依赖固件列表进行升级的同时,确保升级过程的可靠性。
Method for upgrading firmware, electronic device and storage medium
Abstract:The invention relates to a method for upgrading firmware, an electronic device and a storage medium. The method comprises the steps of constructing an upgrade temporary storage mirror image according to upgrade mode firmware in current equipment and a dependence firmware list of the upgrade mode firmware, writing the upgrade temporary storage mirror image into a temporary storage firmware partition in a partition table of the equipment, positioning partition starting addresses corresponding to the upgrade mode firmware and the dependence firmware list of the upgrade mode firmware in the current partition table to corresponding firmware in the temporary storage firmware partition according to a first upgrade instruction in a first upgrade stage, and upgrading the upgrade mode firmware and the dependence firmware list of the upgrade mode firmware based on the temporary storage firmware partition according to a second upgrade instruction in a second upgrade stage. According to the invention, even if power failure occurs at any moment of firmware upgrading, after the power is turned on again, the firmware can be continuously upgraded, so that the upgrading of the firmware in an upgrading mode and the dependent firmware list of the firmware in the upgrading mode can be realized, and the reliability of the upgrading process can be ensured.
Recommended citation:
纪大峣. 升级固件的方法、电子设备和存储介质[P]. 中国:CN117407022A,2024-01-16.
D. Ji,”Method for upgrading firmware, electronic device and storage medium,” China Patent CN117407022A, January 16,2024.
